package com.quectel.core.module.securitypatrol.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2022/05/07 14:11
 */
@Data
@Schema
public class SecurityPatrolPlanDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     *
     */
    @Schema(description = "")
    private Long tenantId;

    /**
     * 所属小区
     */
    @Schema(description = "所属小区")
    private Long villageId;

    @Schema(description = "巡检种类1安防巡检2质量检查3环境保洁4绿化养护")
    private Byte category;

    /**
     * 计划名称
     */
    @Schema(description = "计划名称")
    @NotNull
    @Length(min = 1, max = 80)
    private String name;

    /**
     * 路线id
     */
    @Schema(description = "路线id")
    @NotNull
    private Long routeId;

    @Schema(description = "路线名称")
    private String routeName;

    /**
     * 计划开始时间
     */
    @Schema(description = "计划开始时间")
    @NotNull
    private Date startTime;

    /**
     * 计划结束时间
     */
    @Schema(description = "计划结束时间")
    @NotNull
    private Date endTime;

    /**
     * 执行人id
     */
    @Schema(description = "执行人id")
    @NotNull
    private Long execUserId;

    /**
     * 执行人姓名
     */
    @Schema(description = "执行人姓名")
    @NotNull
    private String execUsername;

    /**
     * 每周工作计划[1,3,7]
     */
    @Schema(description = "每周工作计划[1,3,7]")
    @NotNull
    private String weekPlan;

    /**
     * 时间段配置[03:00-06:00]
     */
    @Schema(description = "时间段配置[03:00-06:00]")
    @NotNull
    private String dayPeriodArr;

    /**
     * 签到详情
     */
    @Schema(description = "签到详情")
    private String signDetail;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "园区名称")
    private String villageName;

    @Schema(description = "路线名称")
    private String securityPatrolRouteName;

    @Schema(description = "路线dto")
    private SecurityPatrolRouteDto securityPatrolRouteDto;
    /************非数据库字段 end **************/
}
